package com.iplay.实战java高并发程序设计.chapter5.c51;

/**
 * 饿汉式
 * @author dangwu
 * @since 2021/11/5 10:53 上午
 */
public class Singleton {
    private Singleton(){}
    private static Singleton instance = new Singleton();
    public static Singleton getInstance(){
        return instance;
    }
}
